package com.kpatil.erp.impl.common;

import com.kpatil.erp.common.HasId;

public final class ContactDO<T> extends DataBaseAware implements
		com.kpatil.erp.common.Contact<T>, HasId {

	private T value;
	private ContactTypeDO type;
	boolean isDefault;
	
	public ContactDO() {
		this.type = null;
		this.value = null;
	}

	public ContactDO(ContactTypeDO contactType, T value) {
		this.type = contactType;
		this.value = value;
	}

	@Override
	public ContactTypeDO getType() {
		return type;
	}

	@Override
	public T getValue() {
		return value;
	}

	public void setType(ContactTypeDO type) {
		this.type = type;
	}

	public void setValue(T value) {
		this.value = value;
	}

}
